/*
 * @Author: your name
 * @Date: 2021-04-27 09:58:35
 * @LastEditTime: 2021-04-27 10:28:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \webpackstudy\src\lib\Complute.js
 */

export default class Complute{
    // 构造函数
    constructor(){
        this.name = 'Complute';
    };

    add(a, b){
        return a + b; 
    };
    sub(a, b){
        return a - b; 
    };
    mul(a, b){
        return a * b; 
    };
    div(a, b){
        return a / b; 
    };
}